Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jennyf/netcore5 #213

Merged
merged 2 commits into from
Jun 17, 2020
Merged

Jennyf/netcore5 #213

merged 2 commits into from
Jun 17, 2020

Conversation

jennyf19
Copy link
Collaborator

@jennyf19 jennyf19 commented Jun 16, 2020

  • there are 6 tests failing w/net 5, getting a null ref. will be investigating that, but thought best to work from this branch

@jmprieur

@jennyf19 jennyf19 changed the base branch from master to jmprieur/fix193 June 16, 2020 23:48
@@ -5,6 +5,6 @@ steps:
- task: UseDotNet@2
displayName: 'Use .Net Core SDK'
inputs:
version: 3.1.101, 5.0.100-preview.5.20279.10
version: 5.0.100-preview.5.20279.10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I was suprised that you can have a list there :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's what the documentation says to do. idk. doesn't seem to work.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bgavrilMS had to make separate tasks for each TFW

@jennyf19 jennyf19 marked this pull request as ready for review June 17, 2020 18:24
@jennyf19
Copy link
Collaborator Author

@jmprieur this is ready now. will need to update the release build when the time comes to .net 5

Copy link
Collaborator

@jmprieur jmprieur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! @jennyf19

var configuredJwtOptions = provider.GetService<IConfigureOptions<JwtBearerOptions>>() as ConfigureNamedOptions<JwtBearerOptions>;

Assert.Equal(_jwtBearerScheme, configuredJwtOptions.Name);
var configuredJwtOptions = provider.GetService<IConfigureOptions<JwtBearerOptions>>() as IConfigureNamedOptions<JwtBearerOptions>;
Copy link
Collaborator Author

@jennyf19 jennyf19 Jun 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • This is an issue w/.NET 5, it's a ConfigureNamedOptions<JwtBearerOptions, Microsoft.AspNetCore.Authentication.JwtBearer>, which is not a ConfigureNamedOptions<JwtBearerOptions>. and, Microsoft.AspNetCore.Authentication.JwtBearer is not a public type.
x.GetType().FullName
"Microsoft.Extensions.Options.ConfigureNamedOptions`2[[Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions, Microsoft.AspNetCore.Authentication.JwtBearer, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[System.IServiceProvider, System.ComponentModel, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]]" 

We probably don't need to check the name, this isn't surfaced by the interface.

@jennyf19 jennyf19 merged commit b77f583 into jmprieur/fix193 Jun 17, 2020
@jennyf19 jennyf19 deleted the jennyf/netcore5 branch June 17, 2020 18:30
jennyf19 added a commit that referenced this pull request Jun 17, 2020
* initial commit for net core 5

* update dependencies
jennyf19 added a commit that referenced this pull request Jun 17, 2020
* Initial work
(does not build)

* fix tests (#205)

move files to migrationaid folder

* AddMicrosoftWebAppCallsApi naming changes (#208)

* AddMicrosoftWebAppCallsApi naming changes

* fix xml comments

* more changes to api surface (#210)

* more changes to api surface

* fix namespace

* add services obsolete file and fix namespace

* Fixing one of the samples

Co-authored-by: Jean-Marc Prieur <[email protected]>

* Jennyf/netcore5 (#213)

* initial commit for net core 5

* update dependencies

* Proposing to also remove the token decrypt certificate from AddMicrosoftWebAPI  (#212)

* more changes to api surface
* fix namespace
* add services obsolete file and fix namespace
* Fixing one of the samples

proposing to also remove the certificate from the public API of AddMicrosoftProtectedApi.
something like the following.
* Improving the experience of the MigrationAid when calling AddProtectedWebApi (obsolete), with a decrypt certificate.
Updating the tests

Co-authored-by: Jenny Ferries <[email protected]>

* Initial work
(does not build)

* fix tests (#205)

move files to migrationaid folder

* AddMicrosoftWebAppCallsApi naming changes (#208)

* AddMicrosoftWebAppCallsApi naming changes

* fix xml comments

* more changes to api surface (#210)

* more changes to api surface

* fix namespace

* add services obsolete file and fix namespace

* Fixing one of the samples

Co-authored-by: Jean-Marc Prieur <[email protected]>

* Jennyf/netcore5 (#213)

* initial commit for net core 5

* update dependencies

* Proposing to also remove the token decrypt certificate from AddMicrosoftWebAPI  (#212)

* more changes to api surface
* fix namespace
* add services obsolete file and fix namespace
* Fixing one of the samples

proposing to also remove the certificate from the public API of AddMicrosoftProtectedApi.
something like the following.
* Improving the experience of the MigrationAid when calling AddProtectedWebApi (obsolete), with a decrypt certificate.
Updating the tests

Co-authored-by: Jenny Ferries <[email protected]>

* Update template-install-dotnet-core.yaml

Co-authored-by: Jean-Marc Prieur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants